import { Component, OnInit, Input } from '@angular/core';
import { TemplateViewModel } from "./index";

@Component({
    styleUrls: ['./index.scss'],
    selector: 'template-facade',
    template: `
        <template-switch *ngIf="option.type=='switch'" [option]="option"></template-switch>
        <template-count *ngIf="option.type=='count'" [option]="option"></template-count>
    `
})
export class TempateFacade implements OnInit {
    @Input() option: TemplateViewModel;
    constructor() { }

    ngOnInit() { }
}